import request from "@/utils/request";
import { ParseData } from "@/utils/utils";

// 获取服务列表分页
export const GetServeList = (data: any) => {
  return request({
    method: "GET",
    url: `/fuwu?${ParseData(data)}`,
  });
};
// 服务上下架
export const ChangeServeStatus = (data: any) => {
  return request({
    method: "PUT",
    url: `/fuwu/shangjia/${data.id}`,
  });
};
// 服务编辑
export const EditServe = (data: any) => {
  return request({
    method: "PUT",
    url: `/fuwu`,
    data
  });
};
// 服务查询
export const GetServe = (data: any) => {
  return request({
    method: "GET",
    url: `/fuwu/${data.id}`,
  });
};
